using System;
using FreeSql.DataAnnotations;

namespace Colorful.Furniture.PermissionManagement
{

    /// <summary>
    /// 管理员角色
    /// </summary>
    [Table(Name = "sys_manager_role")]
	public partial class SysManagerRole {

		/// <summary>
		/// 编码
		/// </summary>
		[Column(Name = "id", IsPrimary = true)]
		public Guid Id { get; set; }

		/// <summary>
		/// 管理员编码
		/// </summary>
		[Column(Name = "manager_id")]
		public Guid? ManagerId { get => _ManagerId; set {
			if (_ManagerId == value) return;
			_ManagerId = value;
			Manager = null;
		} }
		private Guid? _ManagerId;

		/// <summary>
		/// 角色编码
		/// </summary>
		[Column(Name = "role_id")]
		public Guid? RoleId { get => _RoleId; set {
			if (_RoleId == value) return;
			_RoleId = value;
			Role = null;
		} }
		private Guid? _RoleId;


		#region 外键 => 导航属性，ManyToOne/OneToOne

		
		public virtual SysRole Role { get; set; }

		
		public virtual SysManager Manager { get; set; }

		#endregion

		#region 外键 => 导航属性，ManyToMany

		#endregion
	}

}
